300 |
Can I add any break or divider line
with List1 do begin ScrollBySingleLine := False; Columns.Add('Default'); with Items do begin Add('Item 1'); h := Add(Null); ItemBreak[h] := EXLISTLib_TLB.SingleLine; SelectableItem[h] := False; ItemHeight[h] := 6; Add('Item 3'); end; end |
299 |
Can I change the default border of the tooltip, using your EBN files
with List1 do begin ToolTipDelay := 1; ToolTipWidth := 364; VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); Background[EXLISTLib_TLB.exToolTipAppearance] := $1000000; (IUnknown(Columns.Add('tootip')) as EXLISTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
298 |
Can I change the background color for the tooltip
with List1 do begin ToolTipDelay := 1; ToolTipWidth := 364; Background[EXLISTLib_TLB.exToolTipBackColor] := $ff; (IUnknown(Columns.Add('tootip')) as EXLISTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
297 |
Does the tooltip support HTML format
|
296 |
Can I change the forecolor for the tooltip
with List1 do begin ToolTipDelay := 1; ToolTipWidth := 364; Background[EXLISTLib_TLB.exToolTipForeColor] := $ff; (IUnknown(Columns.Add('tootip')) as EXLISTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
295 |
Can I change the foreground color for the tooltip
|
294 |
Is there any function to limit the height of the items when I display it using multiple lines
with List1 do begin ScrollBySingleLine := True; Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := Add('Cell 1'); Caption[h,OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.'; CellSingleLine[h,OleVariant(1)] := EXLISTLib_TLB.exCaptionWordWrap; ItemMaxHeight[h] := 48; end; end |
293 |
Why I cannot center my cells in the column
with List1 do begin DrawGridLines := EXLISTLib_TLB.exAllLines; (IUnknown(Columns.Add('Default')) as EXLISTLib_TLB.Column).Alignment := EXLISTLib_TLB.CenterAlignment; Items.Add('item 1'); Items.Add('item 2'); Items.Add('item 3'); end |
292 |
How can I align the cell to the left, center or to the right
with List1 do begin DrawGridLines := EXLISTLib_TLB.exAllLines; Columns.Add('Default'); with Items do begin CellHAlignment[Add('left'),OleVariant(0)] := EXLISTLib_TLB.LeftAlignment; CellHAlignment[Add('center'),OleVariant(0)] := EXLISTLib_TLB.CenterAlignment; CellHAlignment[Add('right'),OleVariant(0)] := EXLISTLib_TLB.RightAlignment; end; end |
291 |
How do I apply HTML format to a cell
with List1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); HTMLPicture['p1'] := 'c:\exontrol\images\zipdisk.gif'; HTMLPicture['p2'] := 'c:\exontrol\images\auction.gif'; Columns.Add('Default'); with Items do begin h := Add('The following item shows some of the HTML format supported:'); CellHAlignment[h,OleVariant(0)] := EXLISTLib_TLB.CenterAlignment; h := Add('<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <u' + '>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolor' + '</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> '); CaptionFormat[h,OleVariant(0)] := EXLISTLib_TLB.exHTML; CellSingleLine[h,OleVariant(0)] := EXLISTLib_TLB.exCaptionWordWrap; end; end |
290 |
How can I change the font for a cell
|
289 |
How can I change the font for a cell
|
288 |
How can I change the font for entire item
|
287 |
How do I vertically align a cell
with List1 do begin DrawGridLines := EXLISTLib_TLB.exAllLines; (IUnknown(Columns.Add('MultipleLine')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellSingleLine] := OleVariant(False); Columns.Add('VAlign'); with Items do begin h := Add('This is a bit of long text that should break the line'); Caption[h,OleVariant(1)] := 'top'; CellVAlignment[h,OleVariant(1)] := EXLISTLib_TLB.TopAlignment; h := Add('This is a bit of long text that should break the line'); Caption[h,OleVariant(1)] := 'middle'; CellVAlignment[h,OleVariant(1)] := EXLISTLib_TLB.MiddleAlignment; h := Add('This is a bit of long text that should break the line'); Caption[h,OleVariant(1)] := 'bottom'; CellVAlignment[h,OleVariant(1)] := EXLISTLib_TLB.BottomAlignment; end; end |
286 |
How can I change the position of an item
|
285 |
How do I find an item
with List1 do begin Columns.Add('Default'); with Items do begin Add('Item 1'); Add('Item 2'); Add('Item 3'); ItemBold[FindItem['Item 2',OleVariant(0),Null]] := True; end; end |
284 |
How can I insert a hyperlink or an anchor element
with List1 do begin Columns.Add('Column'); with Items do begin CaptionFormat[Add('Just an <a1>anchor</a> element ...'),OleVariant(0)] := EXLISTLib_TLB.exHTML; end; with Items do begin CaptionFormat[Add('Just another <a2>anchor</a> element ...'),OleVariant(0)] := EXLISTLib_TLB.exHTML; end; end |
283 |
How do I find the handle of the item based on its index
|
282 |
How can I find the cell being clicked in a radio group
with List1 do begin MarkSearchColumn := False; SelBackColor := RGB(255,255,128); SelForeColor := RGB(0,0,0); Columns.Add('C1'); Columns.Add('C2'); Columns.Add('C3'); with Items do begin h := Add('Cell 1'); Caption[h,OleVariant(1)] := 'Radio 1'; CellHasRadioButton[h,OleVariant(1)] := True; CellRadioGroup[h,OleVariant(1)] := 1234; Caption[h,OleVariant(2)] := 'Radio 2'; CellHasRadioButton[h,OleVariant(2)] := True; CellRadioGroup[h,OleVariant(2)] := 1234; CellState[h,OleVariant(1)] := 1; CellChecked(1234,i,c); CellBold[i,OleVariant(c)] := True; end; end |
281 |
Can I let the user to resize at runtime the specified item
with List1 do begin ScrollBySingleLine := True; DrawGridLines := EXLISTLib_TLB.exAllLines; Columns.Add('Default'); with Items do begin ItemAllowSizing[Add('resizable item')] := True; Add('not resizable item'); end; end |
280 |
How can I change the size ( width, height ) of the picture
with List1 do begin Columns.Add('Default'); with Items do begin h := Add('Item 1'); CellPicture[h,OleVariant(0)] := List1.ExecuteTemplate('loadpicture(`c:\exontrol\images\zipdisk.gif`)'); CellPictureWidth[h,OleVariant(0)] := 24; CellPictureHeight[h,OleVariant(0)] := 24; ItemHeight[h] := 32; h := Add('Item 2'); CellPicture[h,OleVariant(0)] := List1.ExecuteTemplate('loadpicture(`c:\exontrol\images\zipdisk.gif`)'); ItemHeight[h] := 48; end; end |
279 |
How can I find the number or the count of selected items
with List1 do begin SingleSel := False; Columns.Add('Default'); with Items do begin h := Add('Item 1'); Add('Item 2'); Add('Item 3'); SelectItem[FirstVisibleItem] := True; SelectItem[NextVisibleItem[FirstVisibleItem]] := True; Add(OleVariant(SelectCount)); end; end |
278 |
How do I unselect an item
with List1 do begin Columns.Add('Default'); with Items do begin h := Add('Item 1'); Add('Item 2'); Add('Item 3'); SelectItem[h] := False; end; end |
277 |
How do I find the selected item
with List1 do begin Columns.Add('Default'); with Items do begin h := Add('Item 1'); Add('Item 2'); Add('Item 3'); SelectItem[h] := True; ItemBold[SelectedItem[0]] := True; end; end |
276 |
How do I un select all items
with List1 do begin SingleSel := False; Columns.Add('Default'); with Items do begin Add('Item 1'); Add('Item 2'); Add('Item 3'); UnselectAll(); end; end |
275 |
How do I select multiple items
with List1 do begin SingleSel := False; Columns.Add('Default'); with Items do begin Add('Item 1'); Add('Item 2'); Add('Item 3'); SelectItem[FirstVisibleItem] := True; SelectItem[NextVisibleItem[FirstVisibleItem]] := True; end; end |
274 |
How do I select all items
with List1 do begin SingleSel := False; Columns.Add('Default'); with Items do begin Add('Item 1'); Add('Item 2'); Add('Item 3'); SelectAll(); end; end |
273 |
How do I select an item
with List1 do begin Columns.Add('Default'); with Items do begin Add('Item 1'); Add('Item 2'); Add('Item 3'); SelectItem[NextVisibleItem[FocusItem]] := True; end; end |
272 |
Can I display a button with some picture or icon inside
with List1 do begin HTMLPicture['p1'] := 'c:\exontrol\images\zipdisk.gif'; Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := Add('Cell 1'); Caption[h,OleVariant(1)] := ' Button <img>p1</img> '; CaptionFormat[h,OleVariant(1)] := EXLISTLib_TLB.exHTML; CellHAlignment[h,OleVariant(1)] := EXLISTLib_TLB.RightAlignment; CellHasButton[h,OleVariant(1)] := True; ItemHeight[h] := 48; end; end |
271 |
Can I display a button with some picture or icon inside
with List1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := Add('Cell 1'); Caption[h,OleVariant(1)] := ' Button <img>1</img> '; CaptionFormat[h,OleVariant(1)] := EXLISTLib_TLB.exHTML; CellHAlignment[h,OleVariant(1)] := EXLISTLib_TLB.RightAlignment; CellHasButton[h,OleVariant(1)] := True; end; end |
270 |
Can I display a button with some icon inside
with List1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := Add('Cell 1'); Caption[h,OleVariant(1)] := ' <img>1</img> '; CaptionFormat[h,OleVariant(1)] := EXLISTLib_TLB.exHTML; CellHAlignment[h,OleVariant(1)] := EXLISTLib_TLB.RightAlignment; CellHasButton[h,OleVariant(1)] := True; end; end |
269 |
How can I assign multiple icon/picture to a cell
with List1 do begin HTMLPicture['p1'] := 'c:\exontrol\images\zipdisk.gif'; HTMLPicture['p2'] := 'c:\exontrol\images\auction.gif'; Columns.Add('Default'); with Items do begin h := Add('text <img>p1</img> another picture <img>p2</img> and so on'); CaptionFormat[h,OleVariant(0)] := EXLISTLib_TLB.exHTML; CellPicture[h,OleVariant(0)] := List1.ExecuteTemplate('loadpicture(`c:\exontrol\images\colorize.gif`)'); ItemHeight[h] := 48; Add('Item 2'); end; end |
268 |
How can I assign an icon/picture to a cell
|
267 |
How can I assign multiple icons/pictures to a cell
with List1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); Columns.Add('Default'); with Items do begin h := Add('Item <img>1</img> 1, <img>2</img>, ... and so on '); CaptionFormat[h,OleVariant(0)] := EXLISTLib_TLB.exHTML; end; end |
266 |
How can I assign multiple icons/pictures to a cell
with List1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); Columns.Add('Default'); with Items do begin h := Add('Item 1'); CellImages[h,OleVariant(0)] := '1,2,3'; end; end |
265 |
How can I assign an icon/picture to a cell
with List1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); Columns.Add('Default'); with Items do begin h := Add('Item 1'); CellImage[h,OleVariant(0)] := 1; CellImage[Add('Item 2'),OleVariant(0)] := 2; CellImage[Add('Item 3'),OleVariant(0)] := 3; end; end |
264 |
How can I display a button inside the item or cell
with List1 do begin Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := Add('Cell 1'); Caption[h,OleVariant(1)] := ' Button 1 '; CellHAlignment[h,OleVariant(1)] := EXLISTLib_TLB.RightAlignment; CellHasButton[h,OleVariant(1)] := True; h := Add('Cell 2'); Caption[h,OleVariant(1)] := ' Button 2 '; CellHAlignment[h,OleVariant(1)] := EXLISTLib_TLB.CenterAlignment; CellHasButton[h,OleVariant(1)] := True; end; end |
263 |
How can I change the state of a radio button
with List1 do begin MarkSearchColumn := False; SelBackColor := RGB(255,255,128); SelForeColor := RGB(0,0,0); Columns.Add('C1'); Columns.Add('C2'); Columns.Add('C3'); with Items do begin h := Add('Cell 1'); Caption[h,OleVariant(1)] := 'Radio 1'; CellHasRadioButton[h,OleVariant(1)] := True; CellRadioGroup[h,OleVariant(1)] := 1234; Caption[h,OleVariant(2)] := 'Radio 2'; CellHasRadioButton[h,OleVariant(2)] := True; CellRadioGroup[h,OleVariant(2)] := 1234; CellState[h,OleVariant(1)] := 1; end; end |
262 |
How can I assign a radio button to a cell
with List1 do begin MarkSearchColumn := False; SelBackColor := RGB(255,255,128); SelForeColor := RGB(0,0,0); Columns.Add('C1'); Columns.Add('C2'); Columns.Add('C3'); with Items do begin h := Add('Cell 1'); Caption[h,OleVariant(1)] := 'Radio 1'; CellHasRadioButton[h,OleVariant(1)] := True; CellRadioGroup[h,OleVariant(1)] := 1234; Caption[h,OleVariant(2)] := 'Radio 2'; CellHasRadioButton[h,OleVariant(2)] := True; CellRadioGroup[h,OleVariant(2)] := 1234; CellState[h,OleVariant(1)] := 1; end; end |
261 |
How can I change the state of a checkbox
with List1 do begin Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := Add('Cell 1'); Caption[h,OleVariant(1)] := 'Check Box'; CellHasCheckBox[h,OleVariant(1)] := True; CellState[h,OleVariant(1)] := 1; end; end |
260 |
How can I assign a checkbox to a cell
with List1 do begin Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := Add('Cell 1'); Caption[h,OleVariant(1)] := 'Check Box'; CellHasCheckBox[h,OleVariant(1)] := True; end; end |
259 |
How can I display an item or a cell on multiple lines
with List1 do begin ScrollBySingleLine := True; Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := Add('Cell 1'); Caption[h,OleVariant(1)] := 'This is bit of text that''s shown on multiple lines'; CellSingleLine[h,OleVariant(1)] := EXLISTLib_TLB.exCaptionWordWrap; end; end |
258 |
How can I assign a tooltip to a cell
|
257 |
How can I associate an extra data to a cell
|
256 |
How do I enable or disable a cell
with List1 do begin Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := Add('Cell 1'); Caption[h,OleVariant(1)] := 'Cell 2'; CellEnabled[h,OleVariant(1)] := False; end; end |
255 |
How do I change the cell's foreground color
|
254 |
How do I change the visual effect for the cell, using your EBN files
|
253 |
How do I change the cell's background color
|
252 |
How do I change the caption or value for a particular cell
|
251 |
How do I retrieve the focused item
with List1 do begin Columns.Add('Default'); with Items do begin Add('Item 1'); Add('Item 2'); Add('Item 3'); ItemBold[FocusItem] := True; end; end |
250 |
How do I enumerate the visible items
with List1 do begin Columns.Add('Default'); with Items do begin h := Add('Item 1'); h := Add('Item 2'); ItemBold[FirstVisibleItem] := True; ItemBold[NextVisibleItem[FirstVisibleItem]] := True; end; end |
249 |
How can I make an item unselectable, or not selectable
with List1 do begin Columns.Add('Column'); with Items do begin h := Add('unselectable - you can''t get selected'); SelectableItem[h] := False; Add('selectable'); end; end |
248 |
How can I hide or show an item
with List1 do begin Columns.Add('Column'); with Items do begin h := Add('hidden'); ItemHeight[h] := 0; SelectableItem[h] := False; Add('visible'); end; end |
247 |
How can I change the height for all items
|
246 |
How do I change the height of an item
with List1 do begin ScrollBySingleLine := True; Columns.Add('Default'); with Items do begin ItemHeight[Add('height')] := 128; end; Items.Add('enabled'); end |
245 |
How do I disable or enable an item
with List1 do begin Columns.Add('Default'); with Items do begin EnableItem[Add('disabled')] := False; end; Items.Add('enabled'); end |
244 |
How do I display as strikeout a cell
|
243 |
How do I display as strikeout a cell or an item
|
242 |
How do I display as strikeout an item
|
241 |
How do I underline a cell
with List1 do begin Columns.Add('Default'); with Items do begin CellUnderline[Add('underline'),OleVariant(0)] := True; end; end |
240 |
How do I underline a cell or an item
|
239 |
How do I underline an item
with List1 do begin Columns.Add('Default'); with Items do begin ItemUnderline[Add('underline')] := True; end; end |
238 |
How do I display as italic a cell
with List1 do begin Columns.Add('Default'); with Items do begin CellItalic[Add('italic'),OleVariant(0)] := True; end; end |
237 |
How do I display as italic a cell or an item
|
236 |
How do I display as italic an item
with List1 do begin Columns.Add('Default'); with Items do begin ItemItalic[Add('italic')] := True; end; end |
235 |
How do I bold a cell
with List1 do begin Columns.Add('Default'); with Items do begin CellBold[Add('bold'),OleVariant(0)] := True; end; end |
234 |
How do I bold a cell or an item
|
233 |
How do I bold an item
with List1 do begin Columns.Add('Default'); with Items do begin ItemBold[Add('bold')] := True; end; end |
232 |
How do I change the foreground color for the item
|
231 |
How do I change the visual appearance for the item, using your EBN technology
with List1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); Columns.Add('Default'); with Items do begin ItemBackColor[Add('Item')] := $1000000; end; end |
230 |
How do I change the background color for the item
|
229 |
How do I associate an extra data to an item
|
228 |
How do I programmatically edit a cell
// AfterCellEdit event - Occurs after data in the current cell is edited. procedure TForm1.List1AfterCellEdit(ASender: TObject; ItemIndex : Integer;ColIndex : Integer;NewCaption : WideString); begin with List1 do begin with Items do begin Caption[ItemIndex,OleVariant(ColIndex)] := OleVariant(NewCaption); end; end end; // CancelCellEdit event - Occurs if the edit operation is canceled. procedure TForm1.List1CancelCellEdit(ASender: TObject; ItemIndex : Integer;ColIndex : Integer;Reserved : OleVariant); begin with List1 do begin with Items do begin Caption[ItemIndex,OleVariant(ColIndex)] := OleVariant(Reserved); end; end end; // Click event - Occurs when the user presses and then releases the left mouse button over the list control. procedure TForm1.List1Click(ASender: TObject; ); begin with List1 do begin with Items do begin Edit(FocusItem,OleVariant(0)); end; end end; with List1 do begin AllowEdit := True; Columns.Add('Default'); with Items do begin Add(''); end; end |
227 |
How can I ensure or scroll the control so the item fits the control's client area
|
226 |
How can I remove or delete all items
|
225 |
How can I remove or delete an item
|
224 |
How can I add or insert an item
with List1 do begin Columns.Add('C1'); Columns.Add('C2'); with Items do begin Caption[Add('Cell 1'),OleVariant(1)] := 'Cell 2'; h := Add('Cell 3'); Caption[h,OleVariant(1)] := 'Cell 4'; end; end |
223 |
How can I add or insert an item
with List1 do begin Columns.Add('Default'); Items.Add('new item'); end |
222 |
How can I get the columns as they are shown in the control's sortbar
|
221 |
How can I access the properties of a column
with List1 do begin Columns.Add('A'); Columns.Item['A'].HeaderBold := True; end |
220 |
How can I remove all the columns
|
219 |
How can I remove a column
|
218 |
How can I get the number or the count of columns
|
217 |
How can I change the font for all cells in the entire column
with List1 do begin f := (IUnknown(ComObj.CreateComObject(ComObj.ProgIDToClassID('StdFont'))) as stdole_TLB.StdFont); with f do begin Name := 'Tahoma'; Size := 12; end; with ConditionalFormats.Add('1',Null) do begin Font := (IUnknown(f) as stdole_TLB.StdFont); ApplyTo := EXLISTLib_TLB.exFormatToColumns; end; Columns.Add('Column'); Items.Add(OleVariant(0)); Items.Add(OleVariant(1)); end |
216 |
How can I change the background color for all cells in the column
with List1 do begin var_ConditionalFormat := ConditionalFormats.Add('1',Null); with var_ConditionalFormat do begin BackColor := $ff; ApplyTo := EXLISTLib_TLB.exFormatToColumns; end; Columns.Add('Column'); Items.Add(OleVariant(0)); Items.Add(OleVariant(1)); end |
215 |
How can I change the foreground color for all cells in the column
with List1 do begin var_ConditionalFormat := ConditionalFormats.Add('1',Null); with var_ConditionalFormat do begin ForeColor := $ff; ApplyTo := EXLISTLib_TLB.exFormatToColumns; end; Columns.Add('Column'); Items.Add(OleVariant(0)); Items.Add(OleVariant(1)); end |
214 |
How can I show as strikeout all cells in the column
with List1 do begin var_ConditionalFormat := ConditionalFormats.Add('1',Null); with var_ConditionalFormat do begin StrikeOut := True; ApplyTo := EXLISTLib_TLB.exFormatToColumns; end; Columns.Add('Column'); Items.Add(OleVariant(0)); Items.Add(OleVariant(1)); end |
213 |
How can I underline all cells in the column
with List1 do begin var_ConditionalFormat := ConditionalFormats.Add('1',Null); with var_ConditionalFormat do begin Underline := True; ApplyTo := EXLISTLib_TLB.exFormatToColumns; end; Columns.Add('Column'); Items.Add(OleVariant(0)); Items.Add(OleVariant(1)); end |
212 |
How can I show in italic all data in the column
with List1 do begin var_ConditionalFormat := ConditionalFormats.Add('1',Null); with var_ConditionalFormat do begin Italic := True; ApplyTo := EXLISTLib_TLB.exFormatToColumns; end; Columns.Add('Column'); Items.Add(OleVariant(0)); Items.Add(OleVariant(1)); end |
211 |
How can I bold the entire column
with List1 do begin var_ConditionalFormat := ConditionalFormats.Add('1',Null); with var_ConditionalFormat do begin Bold := True; ApplyTo := EXLISTLib_TLB.exFormatToColumns; end; Columns.Add('Column'); Items.Add(OleVariant(0)); Items.Add(OleVariant(1)); end |
210 |
How can I display a computed column and highlight some values that are negative or less than a value
with List1 do begin Columns.Add('A'); Columns.Add('B'); (IUnknown(Columns.Add('(A+B)*1.19')) as EXLISTLib_TLB.Column).ComputedField := '(%0 + %1) * 1.19'; with Items do begin Caption[Add(OleVariant(1)),OleVariant(1)] := OleVariant(2); end; with Items do begin Caption[Add(OleVariant(10)),OleVariant(1)] := OleVariant(20); end; var_ConditionalFormat := ConditionalFormats.Add('%2 > 10',Null); with var_ConditionalFormat do begin Bold := True; ForeColor := $ff; ApplyTo := EXLISTLib_TLB.FormatApplyToEnum($2); end; end |
209 |
Can I display a computed column so it displays the VAT, or SUM
|
208 |
How can I show a column that adds values in the cells
|
207 |
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
with List1 do begin var_Column := (IUnknown(Columns.Add('Filter')) as EXLISTLib_TLB.Column); with var_Column do begin FilterOnType := True; DisplayFilterButton := True; AutoSearch := EXLISTLib_TLB.exContains; end; Items.Add('Canada'); Items.Add('USA'); end |
206 |
Is there any function to filter the control's data as I type, something like filter on type
with List1 do begin var_Column := (IUnknown(Columns.Add('Filter')) as EXLISTLib_TLB.Column); with var_Column do begin FilterOnType := True; DisplayFilterButton := True; end; Items.Add('Canada'); Items.Add('USA'); end |
205 |
How can I programmatically filter a column
with List1 do begin with (IUnknown(Columns.Add('Filter')) as EXLISTLib_TLB.Column) do begin DisplayFilterButton := True; FilterType := EXLISTLib_TLB.exNonBlanks; end; Items.Add(Null); Items.Add('not empty'); ApplyFilter(); end |
204 |
How can I show or display the control's filter
with List1 do begin (IUnknown(Columns.Add('Filter')) as EXLISTLib_TLB.Column).DisplayFilterButton := True; end |
203 |
How can I customize the items being displayed in the drop down filter window
with List1 do begin with (IUnknown(Columns.Add('Custom Filter')) as EXLISTLib_TLB.Column) do begin DisplayFilterButton := True; DisplayFilterPattern := False; CustomFilter := 'Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*.t' + 'xt|*.log'; FilterType := EXLISTLib_TLB.exPattern; Filter := '*.xls'; end; Items.Add('excel.xls'); Items.Add('word.doc'); Items.Add('pp.pps'); Items.Add('text.txt'); ApplyFilter(); end |
202 |
How can I change the order or the position of the columns in the sort bar
with List1 do begin SortBarVisible := True; SortBarColumnWidth := 48; (IUnknown(Columns.Add('C1')) as EXLISTLib_TLB.Column).SortOrder := EXLISTLib_TLB.SortAscending; (IUnknown(Columns.Add('C2')) as EXLISTLib_TLB.Column).SortOrder := EXLISTLib_TLB.SortDescending; Columns.Item['C2'].SortPosition := 0; end |
201 |
How do I arrange my columns on multiple levels
with List1 do begin (IUnknown(Columns.Add('S')) as EXLISTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('Level 2')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 3')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 4')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 1')) as EXLISTLib_TLB.Column).LevelKey := '2'; (IUnknown(Columns.Add('Level 2')) as EXLISTLib_TLB.Column).LevelKey := '2'; (IUnknown(Columns.Add('Level 3')) as EXLISTLib_TLB.Column).LevelKey := '2'; (IUnknown(Columns.Add('Level 4')) as EXLISTLib_TLB.Column).LevelKey := '2'; (IUnknown(Columns.Add('E')) as EXLISTLib_TLB.Column).Width := 32; end |